import Vue from 'vue'
import VueRouter from 'vue-router'
import SellerPage from '@/views/SellerPage'
import TrendPage from '@/views/TrendPage'
import MapPage from '@/views/MapPage'
import rankpage from '@/views/RankPage'
import hotpage from '@/views/HotPage'
import stockpage from '@/views/StockPage'
import screenpage from '@/views/ScreenPage'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/screen',
  },
  {
    path: '/screen',
    component: screenpage
  },
  {
    path: '/sellerpage',
    component: SellerPage
  },
  {
    path:'/trendpage',
    component:TrendPage
  },
  {
    path:'/mappage',
    component:MapPage
  },
  {
    path:'/rankpage',
    component:rankpage
  },
  {
    path:'/hotpage',
    component:hotpage
  },
  {
    path:'/stockpage',
    component:stockpage
  }

]

const router = new VueRouter({
  routes
})

export default router
